<%@ page language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:requestEncoding value="UTF-8"/> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>회원 가입 처리</title>
</head>
<body>
<h1>회원 가입 처리</h1>
<jsp:useBean id="m" 
class="untiring07.j2ee.basic.projectv5.model.MemberVO" />
<jsp:setProperty property="*" name="m" />
<jsp:useBean id="mdao" class="untiring07.j2ee.basic.projectv5.dao.MemberDAO" scope="application"/>
<c:set var="result" value="${mdao.newMember(m)}"/>
<c:if test="${result}">
	<h3>회원 가입 결과 : 성공!!</h3>
	<p>아이디 : ${m.uid}</p>
	<p>비밀번호 : ${m.pwd}</p>
	<p>이름 : ${m.name}</p>
	<p> <a href="?action=">메인으로 이동</a></p>
</c:if>
<c:if test="${not result}">
	<h3 style="color:red;">회원가입실패!!</h3>
	<p> <a href="javascript:history.go(-1);">이전 페이지로 이동</a></p>
</c:if>
</body>
</html>